package com.lanxin.hr.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lanxin.hr.entity.JcBasicdatavalue;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-07-18
 */
public interface IJcBasicdatavalueService extends IService<JcBasicdatavalue> {
    //列表所有基础数据,分页查询
    public IPage<JcBasicdatavalue> listBasicdatavalue(Integer page,Integer pageSize,Integer type);

    //获取所有的基本数据类型的枚举常量
    public JcBasicdatavalue.Type[] listBasicdatavalueTypes();

    //添加基本数据
    public int addBasicdatavalue(JcBasicdatavalue basicdatavalue);

    //验证添加的基本数据是否已经存在
    public boolean checkBasicdataName(String name);

    //根据oid查询基本数据
    public JcBasicdatavalue getBasicdatavalueById(Integer oid);

    //根据名称查询基本数据
    public JcBasicdatavalue getBasicdatavalueByName(String name);

    //对修改的基本数据进行验证
    public boolean checkUpdateBasicdata(JcBasicdatavalue basicdatavalue);

    //修改基本数据
    public int updateBasicdatavalue(JcBasicdatavalue basicdatavalue);

    //删除基本数据
    public boolean deleteBasicdatavalue(Integer oid);

    //查询所有职位状态为Y
    public List<JcBasicdatavalue> getJobs();

    //查询所有学历，状态为Y
    public List<JcBasicdatavalue> getDegrees();
}
